package com.hd.homework0412.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "category")
public class Category {
    @TableField("category_id")
    private int categoryId;
    @TableField( "category_name")
    private String categoryName;
    @TableField("category_level")
    private String  categoryLevel;
    @TableField("category_id")
    private String  parentId;
    @TableField("category_icon")
    private String  categoryIcon;
    @TableField("category_slogan")
    private String  categorySlogan;
    @TableField("category_pic")
    private String  categoryPic;
    @TableField("category_bg_color")
    private String  categoryBgColor;
    @TableField(exist = false)
    private List<Category> categories;
    @TableField(exist = false)
    private String  products;

}
